package com.icloud.cer.rest.msg.bean;

import java.io.IOException;

import com.icloud.cer.rest.msg.AbsMsgObject;
import com.icloud.cer.rest.msg.BDataFilterInputStream;
import com.icloud.cer.rest.msg.DataFilterOutputStream;

public class HeartbeatRequest extends AbsMsgObject<HeartbeatRequest>{
	public static final int BYTE_COUNT = 8;
	private long sequence;
	
	
	public long getSequence() {
		return sequence;
	}
	public void setSequence(long sequence) {
		this.sequence = sequence;
	}
	@Override
	protected void doSerialize(DataFilterOutputStream dos) throws IOException {
		dos.writeLong(sequence);
		
	}
	@Override
	protected HeartbeatRequest doDeserialize(BDataFilterInputStream dis) throws IOException {
		sequence = dis.readLong();
		return this;
	}
}
